<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
	<title>阅学网</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta name="Keywords" content="">
	<meta name="description" content="">
	<link href="css/user.css" rel="stylesheet" type="text/css">
	<script src="js/common/jquery-1.10.2.min.js"></script>
  </head>
<body>

		 			<div id="uploadWin">
						<form action="user/resource/uploadResFile" method="post" enctype="multipart/form-data">
		 				<table>
		 					<tr>
		 							<td>资源名称:</td>
		 							<td><input type="text" value="" name="resourceTitle" /></td>
		 					</tr>	
		 					<tr>
		 							<td>资源类型:</td>
		 							<td>
		 									<select name="resourceType" >
		 											<option value="1">代码</option>
		 											<option value="2">文档</option>
		 											<option value="3">工具</option>
		 											<option value="4">图书</option>
		 											<option value="5">其他</option>
		 									</select>
		 							</td>
		 					</tr>	
		 					<tr>
		 							<td>搜索关键词:</td>
		 							<td><input type="text" value="" /></td>
		 					</tr>	
		 					<tr>
		 							<td>所属分类:</td>
		 							<td>
		 									<select name="resourceType" id="">
		 											<option>java</option>
		 											<option>c</option>
		 											<option>c++</option>
		 									</select>
		 							</td>
		 					</tr>	
		 					<tr>
		 							<td>所需积分:</td>
		 							<td>
		 									<select name="score" id="">
		 											<option>0</option>
		 											<option>1</option>
		 											<option>2</option>
		 											<option>3</option>
		 											<option>4</option>
		 											<option>5</option>
		 											<option>6</option>
		 											<option>7</option>
		 											<option>8</option>
		 											<option>9</option>
		 											<option>10</option>
		 									</select>
		 							</td>
		 					</tr>	
		 					<tr>
		 							<td>资源描述:</td>
		 							<td>
		 									<textarea rows="4" cols="40" name="resourceDescription"></textarea>
		 							</td>
		 					</tr>	
		 					<tr>
		 							<td>资源上传:</td>
		 							<td>
		 									<input type="file" name="file" />
		 							</td>
		 					</tr>	
		 					<tr>
		 						<td colspan="2">
		 								<input type="submit" value="提交" id="login-button" >
		 						</td>
		 					</tr>
		 				</table>
		 		</form>
				</div>
		 		<div id="upload">
		 				<button id="btn" onclick="document.getElementById('uploadWin').style.display='block';">上传</button>
		 		</div>	
</body>
</html>
